home *** CD-ROM | disk | FTP | other *** search
- /* Setup script for GRn/DNET ... AREXX because I understand */
- /* AREXX and not C= Installer */
-
- /* This script is for DREXXMAIL Release 3 ! */
- options results
- call addlib("rexxreqtools.library",0,-30,0)
-
- /* Some initializations... */
-
- lf = '0a'x
- cr = '0d'x
- colon='3a'x
- semicol='3b'x
- qmark='22'x
- fonttag=""
- address command
-
- /* Tell em what this does ... */
-
- msg = "This script will set up GRn for you ..."||lf||"Please read the documentation FIRST!"
- call rtezrequest(msg,"_Ok, read it already|_Cancel!","DNET-GRn Install",fonttag)
- if rtresult = 0 then exit
-
- /* Do it ... */
-
- msg = "Enter your REAL NAME."
- realname = rtgetstring("",msg,"DNET-GRn Install", , fonttag)
- if realname = "" then realname = "GRn-DNET User"
-
- msg = "Now give me your NODE NAME."||lf||"e.g. if you receive mail at perry@brothers.grunt.com,"||lf||"give me brothers"
- nodename = rtgetstring("",msg,"DNET-GRn Install", , fonttag)
- msg = "Now give me your DOMAIN NAME."||lf||"e.g. if you receive mail at perry@brothers.grunt.com,"||lf||"give me .grunt.com"
- domainname = rtgetstring("",msg,"DNET-GRn Install", , fonttag)
- if domainname = "" then exit
-
- msg = "What organization would you like to say you are from?"
- organiz = rtgetstring("",msg,"DNET-GRn Install", , fonttag)
- if organiz = "" then organiz = "Lazy Typists Union"
-
- /* Prepare the user-startup add on */
-
- call open .us,"T:grnadd",write
- msg = "I am going to append the GRn settings to S:user-startup."
- call writeln .us, semicol||"BEGIN grn-dnet"
- call writeln .us, "setenv REALNAME "||qmark||realname||qmark
- call writeln .us, "setenv NODENAME "||qmark||nodename||qmark
- call writeln .us, "setenv DOMAINNAME "||qmark||domainname||qmark
- call writeln .us, "setenv ORGANIZATION "||qmark||organiz||qmark
- call writeln .us, "setenv NEWSEDITOR "||qmark||"sys:rexxc/rx drexxmail:grneditor.rexx"||qmark
- call writeln .us, "setenv SENDMAIL "||qmark||"sys:rexxc/rx drexxmail:grnmailer.rexx"||qmark
- call writeln .us, semicol||"END grn-dnet"
- call close .us
-
- call rtezrequest(msg,"_Ok|_Cancel!","DNET-GRn Install",fonttag)
- if rtresult = 0 then exit
-
- /* Add to user-startup */
-
- 'join s:user-startup t:grnadd AS t:user-startup'
- 'copy t:user-startup s:user-startup QUIET'
-
- msg = "Done"||lf||"You'll be able to use GRn on your next reboot..."
- call rtezrequest(msg,"_Wow!","DNET-GRn Install",fonttag)
- exit
-
-